/**
 * @author MIAO
 * Created on 2011-10-11
 * For more information, please visit:ismiao.com
 */
package com.ismiao.example.hbm;

import java.util.Random;

public class TestCustomerDAO {
	/*
	 * 测试 save() find() update()
	 */

	public static void main(String[] args) {
		CustomerDAO customerDAO = new CustomerDAO();
		Customer ct = new Customer();
		//ct.setId(new Integer(new Random().nextInt(9999)));
		ct.setName("buaa");
		ct.setPassword(new Integer(new Random().nextInt(9999)).toString());
		customerDAO.saveCustomer(ct);
		customerDAO.findAll();
		customerDAO.loadUpdate(ct.getId(), "phop");
	}
}
